package com.yequan.thread.threadpool.mythreadpoolmanager;


/**
 * 抽象线程池管理工厂
 *
 * @author yequan
 * @date 2019/12/02
 */
public abstract class AbstractThreadPoolManagerFactory {

    /**
     * 构建cpu密集型线程池
     *
     * @return
     */
    abstract CustomThreadPoolManager newCpuIntensiveThreadPoolManager();

    /**
     * 构建IO密集型线程池
     *
     * @return
     */
    abstract CustomThreadPoolManager newIoIntensiveThreadPoolManager();

    /**
     * 构建单线程线程池
     *
     * @return
     */
    abstract CustomThreadPoolManager newSingleThreadPoolManager();

}
